﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="myphoto.aspx.cs" Inherits="AnyOffice.general.person_info.myphoto" %>

<%@ Reference Page="~/general/person_info/photo.aspx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title></title>
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		
		<script language="javascript">
		function CheckForm()
		{
			if (document.Form1.filePhoto.value=="")
			{
				alert("照片不能为空！");
				return (false);
			}   
			return true;	
		}
		</script>
	</HEAD>
	<body class="bodycolor" topMargin="5">
		<form id="Form1" method="post" runat="server">	
         <div class="main_div">		
			<asp:panel id="pnlMain" runat="server">
			<table class="small" cellSpacing="0" cellPadding="3" width="90%" border="0">
				<tr>
					<td class="Big">
						<P><IMG src="/images/myphoto.gif" align="absMiddle"><span class="big3">
								个人照片</span></P>
					</td>
				</tr>
			</table>
			<br>
				<TABLE width="90%" cellSpacing="0" cellPadding="0" border="0" class="tab_pub" align="center">
					<TR>
						<TD class="TableHeader" noWrap colSpan="2"><B>&nbsp;照片上传</B></TD>
					</TR>
					<TR>
						<TD class="TableData" noWrap width="100">个人照片：</TD>
						<TD class="ta_txt">
							<asp:literal id="litPhoto" runat="server" Text="暂无照片"></asp:literal></TD>
					</TR>
					<TR>
						<TD class="TableData" noWrap width="100">
							<asp:Literal id="litUpload" runat="server"></asp:Literal></TD>
						<TD class="ta_txt"><INPUT class="SmallInput" id="filePhoto" type="file" name="filePhoto" runat="server">（gif/jpeg/bmp格式，最大
							<asp:Literal id="litImageMaxSize" runat="server"></asp:Literal>k）</TD>
					</TR>
					<TR>
						<TD class="bnt_con" align="center" colSpan="2">
						    <table width="210" cellpadding="0" cellspacing="0" border="0" style="border:none;">
							  <tr>
							    <td width="70"  align="left" style="border:none;"><asp:Button id="btnSave" runat="server" Text="保存" CssClass="bnt01" onclick="btnSave_Click"></asp:Button></td>
							    <td align="center" style="border:none;"><asp:Button id="btnDelete" runat="server" Text="删除照片" Visible="False" CssClass="bnt02" onclick="btnDelete_Click"></asp:Button></td>
								<td width="70"  align="right" style="border:none;"><INPUT class="bnt01" onClick="location='index.aspx'" type="button" value="返 回"></td>
							  </tr>
							</table></TD>
					</TR>
				</TABLE>
			</asp:panel><asp:literal id="litMessage" runat="server"></asp:literal>
            </div>
            </form>
	</body>
</HTML>
